import Vue from 'vue'
import VueRouter from 'vue-router'
import shouye from '@/views/shouye'

Vue.use(VueRouter)

const routes = [{
    path: '/',
    component: shouye
  },
  {
    path: '/find',
    name: 'Find',
    component: () => import( /* webpackChunkName: "about" */ '@/views/find/Find.vue'),
    redirect:'/find/hot',
    children: [{
        path: '/find/hot',
        name: 'Hot',
        component: () => import( /* webpackChunkName: "about" */ "@/views/find/Hot.vue")
      },
      {
        path: '/find/original',
        name: 'Original',
        component: () => import( /* webpackChunkName: "about" */ "@/views/find/original.vue")
      },
      {
        path: '/find/theme',
        name: 'Theme',
        component: () => import( /* webpackChunkName: "about" */ "@/views/find/theme.vue")
      }
    ]
  },
  {
    path: '/myinfo',
    name: 'Myinfo',
    component: () => import( /* webpackChunkName: "about" */ '@/views/myinfo.vue')
  },
  {
    path: '/searchShow',
    name: 'SearchShow',
    component: () => import( /* webpackChunkName: "about" */ '@/components/SearchShow')
  },

]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router